package main

import (
	_ "github.com/go-sql-driver/mysql"
)

func main() {

	//var db, err = xorm.NewEngine("mysql", "root:root@tcp(127.0.0.1:13316)/g_quicks?charset=utf8mb4&parseTime=True&loc=Local")
	//if err != nil {
	//	panic(err)
	//}
	//db.ShowSQL(true)
	//exec, err := db.QueryString("show tables")
	//for _, value := range exec {
	//	for key, v := range value {
	//		fmt.Printf("key is %s,and value is %s\n", key, string(v))
	//	}
	//}

	app := Create()
	err := app.web.Run(":8089")
	if err != nil {
		panic(err)
	}
}
